// ajax地址
var website = 'http://news.whilte.com';


var accounts1 = localStorage.getItem('accountsadmin');
var password1 = localStorage.getItem('passwordadmin');

if(accounts1==null && password1==null){
    swal({
        title: '请先去登录!',
        type: "error"
    }, function () {
        localStorage.clear();
        setTimeout(function () {
            window.location.href = "../../login.html";
        },500)
    });
}

$("#sign-out").click(function () {
    swal({
        title: '确认退出登录吗?',
        type: "info"
    }, function () {
        localStorage.clear();
        setTimeout(function () {
            window.location.href = "../../login.html";
        },500)
    });
});


